import fetch from './fetch.js'

import { API_URL_CN, API_URL_COM } from '../api/config.js'



export const Request_API_COM = (url, method, data) => fetch({ url: API_URL_COM + url, method: method, data })
//后台数据监控请求封装



export const Request_API_CN = (url, method, data) => fetch({ url: API_URL_CN + url, method: method, data })
//小程序全局方法封装
//参数：
//1：链接
//2：PSOT，GET
//3：data（对象）